﻿@if (Request.IsAuthenticated) {
    <text>
        @*Html.ActionLink(User.Identity.Name, "", "", routeValues: null, htmlAttributes: new { @class = "username", title = "Manage" })*@
        @using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm" })) {
            @Html.AntiForgeryToken()
            <a href="javascript:document.getElementById('logoutForm').submit()">Log off</a>
        }
    </text>
}